const app = getApp();
const accountInfo = wx.getAccountInfoSync();
//版本信息
const envVersion = accountInfo.miniProgram.envVersion;
const  devMenuData=[
  
  
  {
    title:"安全培训教育管理",
    children:[{
      title: '培训课程',
      name: 'my-exam-home',
      package:"pages",
      icon:'t-icon-peixunkecheng-copy',
      params:"?type=1"
    }
    // ,
    //   {
    //     title: '我的考试',
    //     name: 'my-exam-home',
    //     package:"pages",
    //     icon:'t-icon-wodekaoshi-copy',
    //     params:"?type=2"
    //   }
    ]
  }
]
Page({
  options: {
    addGlobalClass: true,
  },
  data: {
      menuData:devMenuData
  },

  onShow(){
    //校验登录状态
    app.checkAuth()
  },


})